home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 July
/
07_02.iso
/
software
/
xq-xsetup
/
files
/
setup.exe
/
{app}
/
plugins
/
XQ Win2K Explorer From Here.xpl
< prev
next >
Wrap
Text File
|
2002-03-16
|
2KB
|
76 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0"
"TYPE"="6"
"COUNT"="2"
"UIPATH 1"="Appearance\Files&Folders\Folders Context Menu"
"UIPATH 2"="Appearance\Files&Folders\Drives"
"NAME"="Explorer From Here Context Menu"
"VERSION"="3.00"
"LANGUAGE"="VBScript"
"OSVERSION"="000101"
"TEXT 1"="Enable "Explore From Here" command for directories"
"TEXT 2"="Enable "Explore From Here" command for drive root"
"DESCRIPTION 1"="This option lets you add a "Explore From Here" option to the context menus of folders and drive root folders respectively."
"DESCRIPTION 2"="When you click on this option, a Explorer Window is opened showing the selected folder as root."
"AUTHOR"="Xteq Systems"
"CONTACTURL"="http://www.xteq.com"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"="ource: http://www2.cajun.net/~theriots/blk/xp_reg_edits.htm found by CptSiskoX"
sName="E&xplore From Here"
sP1_A="HKCR\Directory\Shell\ExploreHere"
sP1_B="HKCR\Directory\Shell\ExploreHere\Command"
sP2_A="HKCR\Drive\Shell\ExploreHere"
sP2_B="HKCR\Drive\Shell\ExploreHere\Command"
Sub Plugin_Initialize
s=RegReadValue(sP1_B & "\@")
if Len(s)>0 then
SetUIElement 1,true
end if
s=RegReadValue(sP2_B & "\@")
if Len(s)>0 then
SetUIElement 2,true
end if
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
s="explorer.exe /e,/root,""%1"""
if GetUIElement(1)=true then
Call RegWriteValue(sp1_A & "\@",sName,1)
Call RegWriteValue(sp1_B & "\@",s,1)
else 'Disable it!
if RegPathExists(sP1_B) then Call RegDeletePath(sP1_B)
if RegPathExists(sP1_A) then Call RegDeletePath(sP1_A)
end if
if GetUIElement(2)=true then
Call RegWriteValue(sp2_A & "\@",sName,1)
Call RegWriteValue(sp2_B & "\@",s,1)
else 'Disable it!
if RegPathExists(sP2_B) then Call RegDeletePath(sP2_B)
if RegPathExists(sP2_A) then Call RegDeletePath(sP2_A)
end if
End Sub
Sub Plugin_Terminate
End Sub
Function BuildCommandString
csVer=GetWinVer
if csVer=1 or csVer=3 or csVer=5 then 'Windows 95/98/ME
csPath=GetWinDir
csPath=csPath & "command.com /k cd ""%1"""
else 'NT/2K/XP
csPath=GetWinSysDir
csPath=csPath & "cmd.exe /k cd ""%1"""
end if
BuildCommandString=csPath
End Function